package com.chapter_7;

/**
 * @Author: Timo
 * @Date: 2019/5/16 14:56
 * @Description: 帮助类
 */
public class Helper {

    public void handle(int count, char c) {
        System.out.println("handle(" + count + "," + c + ") BEGIN");
        for (int i = 0; i < count; i++) {
            System.out.print(c);
            slowly();
        }

        System.out.println("");
        System.out.println("handle(" + count + "," + c + ") END");
    }


    private void slowly() {
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
